<template>
  <div>
    <div>
      {{ num }}
    </div>
    <button @click="add">+ 1</button>
  </div>
</template>

<script>
import { useNum } from "@/hooks";
export default {
  setup() {
    const { num, add } = useNum(100);
    return {
      num,
      add
    };
  },
};
</script>

<style>
</style>